
package com.wobaby.util.xml;

import org.xml.sax.InputSource;

public class XmlInputSource extends InputSource
{

    public XmlInputSource(String filename)
    {
        super(isUNCPath(filename) ? "file://" + filename : filename);
    }

    private static boolean isUNCPath(String filename)
    {
        return filename.startsWith("//") || filename.startsWith("\\\\");
    }
}